package cn.com.miao.lynx.plugin.sms.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * SmsProperties
 *
 * @title: SmsProperties
 * @description:
 * @author: dengmiao
 * @create: 2020-01-10 10:59
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = SmsProperties.SMS_PREFIX)
public class SmsProperties {

    /**
     * sms 配置前缀
     */
    public static final String SMS_PREFIX = "lynx.sms";
    /**
     * RAM账号的AccessKey ID
     */
    private String accessKeyId;
    /**
     * RAM账号Access Key Secret
     */
    private String accessKeySecret;
    /**
     * 短信签名
     */
    private String signName;
    /**
     * 短信发送连接超时时长
     */
    private long connectionTimeout = 10000;
    /**
     * 短信接收消息连接超时时长
     */
    private long readTimeout = 10000;
    /**
     * 短信区域环境
     */
    private String profile = "default";
}
